import {ServerResponseData} from '../../typing';

export type UseFetchDataAction<T extends ServerResponseData<any>> = {
    dataSource ?: T['data'] | T;
    setDataSource ?: (data: T['data'] | T) => void;
    loading ?: boolean;
    reload ?: () => Promise<void>;
}

const useFetchData = {}

export default useFetchData;